package com.microloong.rfid.Controller;

import com.microloong.rfid.model.Const;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/")
public class RfidController {

    @RequestMapping("/currentCard")
    public String currentCard() {
        if (Const.CARD_ID != null) {
            return Const.CARD_ID;
        }
        return "";
    }

}
